/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ContatosProView.java
 *
 * Created on 29/11/2012, 11:47:50
 */
package contatospro;

import javax.swing.JFrame;

/**
 *
 * @author Junnyor S2 Rafa
 */
public class ContatosProView extends javax.swing.JFrame {

    /** Creates new form ContatosProView */
    public ContatosProView() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel16 = new javax.swing.JPanel();
        jToolBar3 = new javax.swing.JToolBar();
        sobrejButton = new javax.swing.JButton();
        sairjButton = new javax.swing.JButton();
        jLabel5 = new javax.swing.JLabel();
        jToolBar2 = new javax.swing.JToolBar();
        historicosjButton = new javax.swing.JButton();
        contatosjButton = new javax.swing.JButton();
        enviaremailjButton = new javax.swing.JButton();
        jLabel6 = new javax.swing.JLabel();
        jToolBar1 = new javax.swing.JToolBar();
        pessoasjButton = new javax.swing.JButton();
        telefonesjButton = new javax.swing.JButton();
        emailsjButton = new javax.swing.JButton();
        situacoesjButton = new javax.swing.JButton();
        tiposcontatosjButton = new javax.swing.JButton();
        jLabel4 = new javax.swing.JLabel();

        setTitle("Contatos Pro");

        jPanel16.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        jToolBar3.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jToolBar3.setFloatable(false);
        jToolBar3.setMinimumSize(new java.awt.Dimension(300, 200));

        sobrejButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/contatospro/Icones/Ajuda1.png"))); // NOI18N
        sobrejButton.setText("Sobre");
        sobrejButton.setToolTipText("Ajuda");
        sobrejButton.setFocusable(false);
        sobrejButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        sobrejButton.setMaximumSize(new java.awt.Dimension(2147483647, 5500));
        sobrejButton.setPreferredSize(new java.awt.Dimension(80, 90));
        sobrejButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        sobrejButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sobrejButtonActionPerformed(evt);
            }
        });
        jToolBar3.add(sobrejButton);

        sairjButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/contatospro/Icones/Sair1.png"))); // NOI18N
        sairjButton.setText("Sair");
        sairjButton.setToolTipText("Sair do Sistema");
        sairjButton.setFocusable(false);
        sairjButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        sairjButton.setMaximumSize(new java.awt.Dimension(80, 90));
        sairjButton.setPreferredSize(new java.awt.Dimension(80, 90));
        sairjButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        sairjButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sairjButtonActionPerformed(evt);
            }
        });
        jToolBar3.add(sairjButton);

        jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel5.setText("Utilitários");

        jToolBar2.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jToolBar2.setFloatable(false);

        historicosjButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/contatospro/Icones/Histórico1.png"))); // NOI18N
        historicosjButton.setText("Históricos");
        historicosjButton.setToolTipText("Históricos de Contatos");
        historicosjButton.setFocusable(false);
        historicosjButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        historicosjButton.setMaximumSize(new java.awt.Dimension(2147483647, 6700));
        historicosjButton.setPreferredSize(new java.awt.Dimension(80, 90));
        historicosjButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        historicosjButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                historicosjButtonActionPerformed(evt);
            }
        });
        jToolBar2.add(historicosjButton);

        contatosjButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/contatospro/Icones/Contatos1.png"))); // NOI18N
        contatosjButton.setText("Contatos");
        contatosjButton.setToolTipText("Realizar Contato");
        contatosjButton.setFocusable(false);
        contatosjButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        contatosjButton.setMaximumSize(new java.awt.Dimension(2147483647, 5300));
        contatosjButton.setPreferredSize(new java.awt.Dimension(80, 90));
        contatosjButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        contatosjButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                contatosjButtonActionPerformed(evt);
            }
        });
        jToolBar2.add(contatosjButton);

        enviaremailjButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/contatospro/Icones/Enviar email.png"))); // NOI18N
        enviaremailjButton.setText("Enviar Email");
        enviaremailjButton.setToolTipText("Enviar Novo E-mail");
        enviaremailjButton.setFocusable(false);
        enviaremailjButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        enviaremailjButton.setMaximumSize(new java.awt.Dimension(2147483647, 7700));
        enviaremailjButton.setPreferredSize(new java.awt.Dimension(80, 90));
        enviaremailjButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        enviaremailjButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                enviaremailjButtonActionPerformed(evt);
            }
        });
        jToolBar2.add(enviaremailjButton);

        jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel6.setText("Consultas");

        jToolBar1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jToolBar1.setFloatable(false);

        pessoasjButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/contatospro/Icones/Cliente1.png"))); // NOI18N
        pessoasjButton.setText("Pessoas");
        pessoasjButton.setToolTipText("Cadastro de Pessoas");
        pessoasjButton.setFocusable(false);
        pessoasjButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        pessoasjButton.setMaximumSize(new java.awt.Dimension(2147483647, 61000));
        pessoasjButton.setName(""); // NOI18N
        pessoasjButton.setPreferredSize(new java.awt.Dimension(80, 90));
        pessoasjButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        pessoasjButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                pessoasjButtonActionPerformed(evt);
            }
        });
        jToolBar1.add(pessoasjButton);

        telefonesjButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/contatospro/Icones/telefone1.png"))); // NOI18N
        telefonesjButton.setText("Telefones");
        telefonesjButton.setToolTipText("Cadastro de Telefones");
        telefonesjButton.setFocusable(false);
        telefonesjButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        telefonesjButton.setMaximumSize(new java.awt.Dimension(2147483647, 6100));
        telefonesjButton.setPreferredSize(new java.awt.Dimension(80, 90));
        telefonesjButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        telefonesjButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                telefonesjButtonActionPerformed(evt);
            }
        });
        jToolBar1.add(telefonesjButton);

        emailsjButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/contatospro/Icones/email1.png"))); // NOI18N
        emailsjButton.setText("Emails");
        emailsjButton.setToolTipText("Cadastro de E-mails");
        emailsjButton.setFocusable(false);
        emailsjButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        emailsjButton.setMaximumSize(new java.awt.Dimension(2147483647, 6100));
        emailsjButton.setPreferredSize(new java.awt.Dimension(80, 90));
        emailsjButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        emailsjButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                emailsjButtonActionPerformed(evt);
            }
        });
        jToolBar1.add(emailsjButton);

        situacoesjButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/contatospro/Icones/Situações1.png"))); // NOI18N
        situacoesjButton.setText("Situações");
        situacoesjButton.setFocusable(false);
        situacoesjButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        situacoesjButton.setMaximumSize(new java.awt.Dimension(80, 90));
        situacoesjButton.setPreferredSize(new java.awt.Dimension(80, 90));
        situacoesjButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        situacoesjButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                situacoesjButtonActionPerformed(evt);
            }
        });
        jToolBar1.add(situacoesjButton);

        tiposcontatosjButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/contatospro/Icones/Tipos de Contato.png"))); // NOI18N
        tiposcontatosjButton.setText("<html><p align=”center”>Tipos de </center><br /><p align=”center”>Contato </center></html></center>\n"); // NOI18N
        tiposcontatosjButton.setFocusable(false);
        tiposcontatosjButton.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        tiposcontatosjButton.setMaximumSize(new java.awt.Dimension(80, 90));
        tiposcontatosjButton.setPreferredSize(new java.awt.Dimension(80, 90));
        tiposcontatosjButton.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        tiposcontatosjButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                tiposcontatosjButtonActionPerformed(evt);
            }
        });
        jToolBar1.add(tiposcontatosjButton);

        jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel4.setText("Cadastros");
        jLabel4.setFocusable(false);

        javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);
        jPanel16.setLayout(jPanel16Layout);
        jPanel16Layout.setHorizontalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jToolBar2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, 194, Short.MAX_VALUE)
                    .addComponent(jToolBar3, javax.swing.GroupLayout.PREFERRED_SIZE, 194, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanel16Layout.setVerticalGroup(
            jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel16Layout.createSequentialGroup()
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPanel16Layout.createSequentialGroup()
                        .addGap(1, 1, 1)
                        .addComponent(jToolBar3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(jLabel5)
                    .addComponent(jLabel6))
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel16Layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jToolBar2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(32, 32, 32))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel16, javax.swing.GroupLayout.DEFAULT_SIZE, 858, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(500, Short.MAX_VALUE))
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-894)/2, (screenSize.height-679)/2, 894, 679);
    }// </editor-fold>//GEN-END:initComponents

private void pessoasjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_pessoasjButtonActionPerformed
              // TODO add your handling code here:
                JFrame frame = new JFrame("Pessoas");
         frame.setContentPane(new JFPessoas());
         frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
         frame.pack();
         frame.setLocationRelativeTo(null);
         frame.setVisible(true);

}//GEN-LAST:event_pessoasjButtonActionPerformed

private void emailsjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_emailsjButtonActionPerformed
// TODO add your handling code here:
               JFrame frame = new JFrame("Emails");
         frame.setContentPane(new JFEmails());
         frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
         frame.pack();
         frame.setLocationRelativeTo(null);
         frame.setVisible(true);
}//GEN-LAST:event_emailsjButtonActionPerformed

private void telefonesjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_telefonesjButtonActionPerformed
// TODO add your handling code here:
               JFrame frame = new JFrame("Telefones");
         frame.setContentPane(new JFTelefones());
         frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
         frame.pack();
         frame.setLocationRelativeTo(null);
         frame.setVisible(true);
}//GEN-LAST:event_telefonesjButtonActionPerformed

private void historicosjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_historicosjButtonActionPerformed
// TODO add your handling code here:
     JFrame frame = new JFrame("Histórico");
         frame.setContentPane(new JFHistoricos());
         frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
         frame.pack();
         frame.setLocationRelativeTo(null);
         frame.setVisible(true);
}//GEN-LAST:event_historicosjButtonActionPerformed

private void contatosjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_contatosjButtonActionPerformed
// TODO add your handling code here:
               JFrame frame = new JFrame("Contatos");
         frame.setContentPane(new JFContatos());
         frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
         frame.pack();
         frame.setLocationRelativeTo(null);
         frame.setVisible(true);
}//GEN-LAST:event_contatosjButtonActionPerformed

private void sairjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sairjButtonActionPerformed
// TODO add your handling code here:
    System.exit(0);
}//GEN-LAST:event_sairjButtonActionPerformed

private void enviaremailjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_enviaremailjButtonActionPerformed
// TODO add your handling code here:
               JFEnviarEmail tela = new JFEnviarEmail(); 
                    tela.setVisible(true);
}//GEN-LAST:event_enviaremailjButtonActionPerformed

private void sobrejButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sobrejButtonActionPerformed
// TODO add your handling code here:
    ContatosProSobre tela = new ContatosProSobre(); 
                    tela.setVisible(true);
}//GEN-LAST:event_sobrejButtonActionPerformed

private void situacoesjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_situacoesjButtonActionPerformed
// TODO add your handling code here:
    JFrame frame = new JFrame("Situações");
         frame.setContentPane(new JFSituacoes());
         frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
         frame.pack();
         frame.setLocationRelativeTo(null);
         frame.setVisible(true);
}//GEN-LAST:event_situacoesjButtonActionPerformed

private void tiposcontatosjButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_tiposcontatosjButtonActionPerformed
// TODO add your handling code here:
    JFrame frame = new JFrame("Tipos de Contatos");
         frame.setContentPane(new JFTipoContato());
         frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
         frame.pack();
         frame.setLocationRelativeTo(null);
         frame.setVisible(true);
}//GEN-LAST:event_tiposcontatosjButtonActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(ContatosProView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(ContatosProView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(ContatosProView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(ContatosProView.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new ContatosProView().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton contatosjButton;
    private javax.swing.JButton emailsjButton;
    private javax.swing.JButton enviaremailjButton;
    private javax.swing.JButton historicosjButton;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JPanel jPanel16;
    private javax.swing.JToolBar jToolBar1;
    private javax.swing.JToolBar jToolBar2;
    private javax.swing.JToolBar jToolBar3;
    private javax.swing.JButton pessoasjButton;
    private javax.swing.JButton sairjButton;
    private javax.swing.JButton situacoesjButton;
    private javax.swing.JButton sobrejButton;
    private javax.swing.JButton telefonesjButton;
    private javax.swing.JButton tiposcontatosjButton;
    // End of variables declaration//GEN-END:variables
}
